
cc.Class({
    extends: cc.Component,

    properties: {

    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    // update (dt) {},



    autofit_btnClicked(){
        let name = 'scenes/autoFixLocal/autoFix';
        this._showScene(name);
    },

    customeMask_btnClicked(){
        let name = 'scenes/mask/mask';
        this._showScene(name);
    },

    multiTex_btnClicked(){
        let name = 'scenes/multiTexture/multiTexture';
        this._showScene(name);
    },

    rt_btnClicked(){
        let name = 'scenes/renderTexture/renderTexture';
        this._showScene(name);
    },

    postprocessing_btnClicked(){
        let name = 'scenes/postprocessing/postprocessing';
        this._showScene(name);
    },

    _showScene(sceneName){
        cc.director.preloadScene(sceneName,()=>{},
            (err)=>{
                if(err) throw err;
                cc.director.loadScene(sceneName);
            });
    },
});
